import express from 'express';
// import path from 'path';
// import {initOLMap} from "../components/MapFunction.js";
// const express = require('express');
// const path = require('path');

const app = express();
const port = 18082;

// 设置静态地图文件目录
const staticDir = 'D:/tool/map/GaoDeMap';

// 使用 express.static 中间件来提供静态文件
app.use(express.static(staticDir));

// 启动服务器
app.listen(port, () => {
    console.log(`Server is running at http://localhost:${port}`);
});